<%define inDocumentationSection %>
<%define inDocumentationSection.build %>
<%set title = J2ME Polish: Documentation %>
<%set basedir = ../ %>
<%include start.txt %>
	
	<div id="content">
	<h1 id="top">Example for the build.xml</h1>
	<p class="legalText">
	<pre>
&lt;project 
	name=&quot;enough-polish-dict&quot; 
	default=&quot;j2mepolish&quot;&gt;
	
&lt;!-- task definitions --&gt;

&lt;taskdef 
	name=&quot;j2mepolish&quot; 
	classname=&quot;de.enough.polish.ant.PolishTask&quot; 
	classpath=&quot;import/enough-j2mepolish-build.jar:import/
		jdom.jar:import/proguard.jar:import/retroguard.jar&quot;/&gt;

&lt;!-- optional J2ME apis --&gt;
&lt;!-- in the alpha release the apis.xml file is not used yet.
        Please adjust the paths to your system --&gt;
&lt;property name=&quot;polish.api.mmapi&quot; location=&quot;~/lib/mma.zip&quot; /&gt;
&lt;property name=&quot;polish.api.wmapi&quot; location=&quot;~/lib/wma.zip&quot; /&gt;
&lt;property name=&quot;polish.api.nokia-ui&quot; location=&quot;~/lib/nokiaui.zip&quot; /&gt;
&lt;property name=&quot;polish.api.bluetooth&quot; location=&quot;~/lib/bluetooth.zip&quot; /&gt;
&lt;property name=&quot;polish.api.btapi&quot; location=&quot;~/lib/bluetooth.zip&quot; /&gt;
	
&lt;!-- build targets, each target can be called via &quot;ant [name]&quot;, 
        e.g. &quot;ant clean&quot;, &quot;ant notest j2mepolish&quot; 
        or just &quot;ant&quot; for calling the default-target --&gt;

&lt;target name=&quot;notest&quot; &gt;
	&lt;property name=&quot;test&quot; value=&quot;false&quot; /&gt;
&lt;/target&gt;
		
&lt;target name=&quot;init&quot;&gt;
  	&lt;property name=&quot;test&quot; value=&quot;true&quot; /&gt;
&lt;/target&gt;
    
&lt;target name=&quot;j2mepolish&quot; 
           depends=&quot;init&quot;&gt;
  &lt;j2mepolish&gt;
      &lt;!-- general settings --&gt;
      &lt;info
         licence=&quot;GPL&quot;
         name=&quot;SimpleMenu&quot;
         version=&quot;1.3.4&quot;
         description=&quot;A test project&quot;
         vendorName=&quot;enough software&quot;
         infoUrl=&quot;http://www.enough.de/j2mepolish&quot;
         icon=&quot;dot.png&quot;
         jarName=&quot;${polish.vendor}-${polish.name}-example.jar&quot; 
         jarUrl=&quot;${polish.jarName}&quot;
         copyright=&quot;Copyright 2004 enough software.&quot;
         deleteConfirm=&quot;Do you really want to kill me?&quot; 
      /&gt;
      &lt;!-- selection of supported devices --&gt;
      &lt;deviceRequirements if=&quot;test&quot;&gt;
         &lt;requirement name=&quot;Identifier&quot; value=&quot;Nokia/6600&quot; /&gt;
      &lt;/deviceRequirements&gt;
      &lt;deviceRequirements unless=&quot;test&quot;&gt;
         &lt;requirement name=&quot;JavaPackage&quot; value=&quot;nokia-ui&quot; /&gt;
         &lt;requirement name=&quot;BitsPerPixel&quot; value=&quot;4+&quot; /&gt;
      &lt;/deviceRequirements&gt;
      &lt;!-- build settings --&gt;
      &lt;!-- You need to adjust the path to the preverify executable.
              Also you could set the resDir attribute to &quot;resources&quot; 
              for an alternative design.
      --&gt;
      &lt;build
         symbols=&quot;ExampleSymbol, AnotherExample&quot;
         imageLoadStrategy=&quot;background&quot;
         fullscreen=&quot;menu&quot;
         usePolishGui=&quot;true&quot;
         preverify=&quot;/home/enough/dev/WTK2.1/bin/preverify&quot;
         resDir=&quot;resources2&quot;
         &gt;
         &lt;!-- midlets definition --&gt;
         &lt;midlet class=&quot;de.enough.polish.example.MenuMidlet&quot; name=&quot;Example&quot; /&gt;
         &lt;!-- project-wide variables - used for preprocessing  --&gt;
         &lt;variables&gt;
           &lt;variable name=&quot;update-url&quot; value=&quot;http://www.enough.de/update&quot; /&gt;
         &lt;/variables&gt;
         &lt;!-- obfuscator settings --&gt;
         &lt;obfuscator unless=&quot;test&quot; 
	                enable=&quot;true&quot; 
			name=&quot;ProGuard&quot; /&gt;
         &lt;!-- debug settings --&gt;
         &lt;debug if=&quot;test&quot; 
	           enable=&quot;true&quot; 
		   useGui=&quot;true&quot; 
		   verbose=&quot;true&quot; 
		   level=&quot;error&quot;&gt;
           &lt;filter pattern=&quot;de.enough.polish.example.*&quot; level=&quot;debug&quot; /&gt;
           &lt;filter pattern=&quot;de.enough.polish.ui.*&quot; level=&quot;warn&quot; /&gt;
         &lt;/debug&gt;
      &lt;/build&gt;
   &lt;/j2mepolish&gt;
&lt;/target&gt;


&lt;target name=&quot;clean&quot; 
  		description=&quot;allows a clean build.&quot;&gt;
	&lt;delete dir=&quot;build&quot; /&gt;
	&lt;delete dir=&quot;dist&quot; /&gt;
&lt;/target&gt;

&lt;/project&gt;

	</pre>
	</p>
<%include end.txt %>